package com.laowu.bean;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 
 * @Title User.java
 * @Package com.laowu.bean
 * @Description 用户信息表
 * @author LaoXu
 * @date 2018年8月14日
 * @version V1.0
 */
public class User {
	private Integer id;
	private String userName;

	@JsonIgnore
	private String userPassword;
	private String nickName;
	private Integer age;
	private String addrr;
	private String userEmail;
	private Date createTime;

	private List<Role> roleList;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getAddrr() {
		return addrr;
	}

	public void setAddrr(String addrr) {
		this.addrr = addrr;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public List<Role> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", userPassword=" + userPassword + ", nickName=" + nickName
				+ ", age=" + age + ", addrr=" + addrr + ", userEmail=" + userEmail + ", createTime=" + createTime
				+ ", roleList=" + roleList + "]";
	}

}
